home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / T0422 / text0039.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  1.6 KB  |  41 lines

  1. > So there is people using the Brainstorm DSP debugger? Cool. :-)
  2. > I thought it was more or less useless as it wasn't finished. Atleast that is
  3.  
  4. Well, I seem to recall using it for debugging my DSP routines as well...  ;-)
  5.  
  6. > Maybe the biggest problem is that the DSP memory is so small? 
  7. > Maybe someone could do a better C-compiler for the 56001?
  8.  
  9. Better than GCC?
  10.  
  11. The problem is that another language is needed.
  12.  
  13. Some reasons why C wouldn't be a good idea:
  14.  
  15.  There's simply no way a compiler could figure out that the strange things
  16.  a C program does to 'unscramble' FFT data can all be handled by switching
  17.  to another addressing mode on the DSP.
  18.  
  19.  It might be possible to recognize circular buffers, but I don't think it
  20.  would be easy (another type of addressing on the DSP).
  21.  
  22.  You'd need a specialized C version to deal reasonably with the fixed point
  23.  numbers. It can be rather tricky to do ordinary integer operations fast on
  24.  the 56k, even if it's possible.
  25.  
  26.  The DSP can not call subroutines to an arbitrary depth without special
  27.  code to remove return addresses from the hardware stack.
  28.  
  29. > > BTW, do you have a version of DSPDebug with a working send/recieve buffer feature?
  30.  
  31. I thought I'd used that earlier, but I can't recall getting it to work later.
  32.  
  33. If the debugger was never released, that might explain things...  ;-)
  34.  
  35. --
  36.   Chalmers University   | Why are these |  e-mail:   rand@cd.chalmers.se
  37.      of Technology      |  .signatures  |            johan@rand.thn.htu.se
  38.                         | so hard to do |  WWW/ftp:  rand.thn.htu.se
  39.    Gothenburg, Sweden   |     well?     |            (MGIFv5, QLem, BAD MOOD)
  40.  
  41.